FROM java:8-jre
MAINTAINER CaiZhongzhen <zhongzhen.cai@five-star.cn>

ADD ./target/gateway.jar /app/
CMD ["java", "-Xmx50m", "-jar", "/app/gateway.jar"]

RUN  echo "Asia/Shanghai" > /etc/timezone
RUN  dpkg-reconfigure -f noninteractive tzdata

EXPOSE 5000